<?php

include_once dirname(__FILE__) . '/../system/settings.php';

if($_GET['type']==1){
    ParticularControl::UpdateStatus(3, $_GET['id']);
    $id = "m_".md5(uniqid(time()));
    ParticularControl::CreateTransaction($id, $_GET['id']);
}else{
    EmpresasControl::UpdateStatus(3, $_GET['id']);
    $id = "m_".md5(uniqid(time()));
    EmpresasControl::CreateTransaction($id, $_GET['id']);
}

header("location: " . $_GET['redirect']);
?>
